<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>紫云科技网络有限公司</title>
<link rel="stylesheet" type="text/css"
	href="<%=path%>/jsp/admin/css/common.css" />
<link rel="stylesheet" type="text/css"
	href="<%=path%>/jsp/admin/css/main.css" />
<script src="<%=path%>/jsp/admin/js/jquery-1.3.1.js"
	type="text/javascript"></script>


<script type="text/javascript">
	$(document).ready(function() {

		$("#btOK").click(function() {

			var title = $("#title");
			var temp1 = $("#temp1");
			var temp2 = $("#temp2");
			var temp3 = $("#temp3");
			var temp4 = $("#temp4");

			if (title.val() == '') {
				alert("标题输入框为空");
				return false;
			} else if (temp1.val() == '') {
				alert("月薪输入框为空");
				return false;
			}
			elseif(temp2.val() == '')
			{
				alert("工作地点输入框为空");
				return false;
			}
			elseif(temp3.val() == '')
			{
				alert("岗位职责输入框为空");
				return false;
			}
			elseif(temp4.val() == '')
			{
				alert("任职要求输入框为空");
				return false;
			}

			return true;
		});
	});
</script>
</head>
<body style="background:url(<%=path%>/image/856.jpg);background-repeat: no-repeat;background-position: center center;background-size: cover;">
	<jsp:include page="top.jsp" />
	<div class="container clearfix">
		<jsp:include page="left.jsp" />
		<div class="main-wrap">

			<div class="crumb-wrap">
				<div class="crumb-list">
					<i class="icon-font"></i><a href="<%=path%>/jsp/admin/index.jsp">首页</a><span
						class="crumb-step">&gt;</span><span> <%
 	Integer type = Integer.parseInt(String.valueOf(request.getParameter("type")));
 	if (type == 4) {
 %> 添加党建工作 <%
 	} else if (type == 5) {
 %> 添加公司新闻 <%
 	} else if (type == 6) {
 %> 添加院校新闻<%
 	} else if (type == 7) {
 %> 添加行业新闻<%
 	} else if (type == 8) {
 %> 添加媒体报道<%
 	}else if (type == 9) {
 %> 添加总部招聘<%
 	}else if (type == 11) {
 %> 添加院校招聘<%
 	}
 %>
					</span>
				</div>
			</div>
			<div class="result-wrap">
				<div class="result-content">
					<form
						action="<%=path%>/admin/AdminNewsServlet?flag=addNews2&type=<%=type%>"
						method="post">
						<table class="insert-tab" width="100%">
							<tbody>

								<tr>
									<th>标题：</th>
									<td><input class="common-text" id="title" name="title"
										size="50" type="text"></td>
								</tr>
								<tr>
									<th>月薪：</th>
									<td><input class="common-text" id="temp1" name="temp1"
										size="50" type="text"></td>
								</tr>
								<tr>
									<th>工作地点：</th>
									<td><input class="common-text" id="temp2" name="temp2"
										size="50" type="text"></td>
								</tr>
								<tr>
									<th>岗位职责：</th>
									<td><textarea id="temp3" name="temp3"
											class="common-textarea"  cols="30"
											style="width: 98%;" rows="10"></textarea></td>
								</tr>
								<tr>
									<th>任职要求：</th>
									<td><textarea id="temp4" name="temp4"
											class="common-textarea"  cols="30"
											style="width: 98%;" rows="10"></textarea></td>
								</tr>
								<tr>
									<th></th>
									<td><input class="btn btn-primary btn6 mr10" value="提交"
										type="submit" id="btOK"><input type="button"
										value="返回" onClick="history.go(-1)" class="btn btn6"></td>
								</tr>
							</tbody>
						</table>
					</form>
				</div>
			</div>

		</div>
		<!--/main-->
	</div>
</body>
</html>